package net.siufung.market.base.dept.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import net.siufung.core.model.EnumsVo;
import net.siufung.core.result.Result;
import net.siufung.market.base.dept.enums.DeptTypes;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 陈建峰
 * @date 2023/1/29 3:04 PM
 * @since V1.0.0
 */
@Api(tags = "系统部门类型")
@Slf4j
@AllArgsConstructor
@RestController
@RequestMapping("/sys/dept/type")
public class DeptTypeController {

    /**
     * 获取 获取系统部门类型列表
     * @return Result<List<EnumsVo>>
     * */
    @ApiOperation(value = "获取系统部门类型列表")
    @PostMapping(value = "/list")
    public Result<List<EnumsVo>> list() {
        return Result.ok(DeptTypes.getList());
    }

}
